/**
 * hnjz.com Inc.
 * Copyright (c) 2004-2012 All Rights Reserved.
 */
package com.hnjz.common;



/**
 * 列表是否显示的枚举
 * 
 * @author lijingfen
 * @version $Id: IsShowEnum.java, 2014-2-18 8:36:55 AM Administrator Exp $
 */
public enum IsShowEnum {

    /**是*/
	Y("0", "列表显示"), 
	/**否*/
	N("1", "列表不显示"), 
    ALLN("2", "所有都不显示"),;

    /**
     * 根据枚举的code获取描述
     * 
     * @param code 
     */
    public static String getNote(String code) {
        for (IsShowEnum ele : values()) {
            if (ele.getCode().equals(code)) {
                return ele.getNote();
            }
        }
        return null;
    }

    /** code */
    private String code;

    /** 说明 */
    private String note;

    private IsShowEnum(String code, String note) {
        this.code = code;
        this.note = note;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
